package models

import "time"

/**
 * @Author: zhaobin
 * @Description TODO
 * @Date: 2022-05-20 11:48
 */

type OrderItem struct {
	Id         int64     `json:"id"`
	OrderId    string    `json:"order_id"`
	UserId     int64     `json:"user_id"`
	GoodsTitle string    `json:"goods_title"`
	GoodsId    int64     `json:"goods_id"`
	GoodsImg   string    `json:"goods_img"`
	GoodsPrice float64   `json:"goods_price"`
	GoodsNum   int       `json:"goods_num"`
	CreatedAt  time.Time `json:"created_at"` // 列名是 `created_at`
	UpdatedAt  time.Time `json:"updated_at"` // 列名是 `updated_at`
}

func (OrderItem) TableName() string {
	return "order_item"
}
